package class_1_8.abstract_test;

public class Person implements Cloneable{
    private String name;

    @Override
    protected Person clone() throws CloneNotSupportedException {
        return (Person) super.clone();
    }

    public static void main(String[] args) throws CloneNotSupportedException{
        Person person=new Person();
        person.name="张三";
        Person person1=person.clone();
        System.out.println(person==person1);
        System.out.println(person1.name);
    }
}
